#***************************************************************************************
# Copyright (c) 2014-2022 Zihao Yu, Nanjing University
#
# NEMU is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
#          http://license.coscl.org.cn/MulanPSL2
#
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
#
# See the Mulan PSL v2 for more details.
#**************************************************************************************/

NAME = gen-expr
SRCS = gen-expr.c
#include $(NEMU_HOME)/scripts/build.mk
build:
	rm -rf build
	mkdir -p /home/zc/ysyx/nemu/tools/gen-expr/build/obj-gen-expr/
	gcc -g -O2 -MMD -Wall  -I/home/zc/ysyx/nemu/tools/gen-expr/include  -c -o /home/zc/ysyx/nemu/tools/gen-expr/build/obj-gen-expr/gen-expr.o gen-expr.c
	g++ -o /home/zc/ysyx/nemu/tools/gen-expr/build/gen-expr /home/zc/ysyx/nemu/tools/gen-expr/build/obj-gen-expr/gen-expr.o  -O2
clean:
	rm -rf build
	rm -f input
run: build
	./build/gen-expr
gdb: build 
	gdb ./build/gen-expr 
file: build
	./build/gen-expr 100 > input
